//用户表的操作

const UUID = require('uuid');
const { Friends } = require('../models');


module.exports = {
	//根据昵称或者uuid添加好友
	addFriend: function(obj){
		var uuid = UUID.v1().replace(/-/g,'');
		obj = {ID: uuid, ...obj};
		return Friends.create(obj);
	}
	
	
	
	
}
